//#include "..\Clients\Clients.h"
#include "..\List\LIST.h"

#define MaxMatches 5.0
#define MustMatches 3
#define MaxResults 5

void FreeFiles(Client *ClientsArray,int *ClientCount,List PropertiesList,int *PropertiesCount);
void WriteFiles(Client *ClientsArray,int *ClientCount,List PropertiesList,int *PropertiesCount);

int Sort_Match_Client(const void *arg1, const void *arg2);
void Print_Matches(Match_Result *M,int size);

void Show_Matching_Menu(Client *ClientsArray,int *ClientCount,List PropertiesList,int *PropertiesCount);
void Match_Client(Client *ClientsArray,int *ClientCount,List PropertiesList,int *PropertiesCount);
void Match_Property(Client *ClientsArray,int *ClientCount,List PropertiesList,int *PropertiesCount);
void Match_ClientsProperties(Client *ClientsArray,int *ClientCount,List PropertiesList,int *PropertiesCount);
void UpdateMatchPages(int pageindex,int totalpages,char *BUF);

void CompareDemandProperty(DemandProperty *D,DemandProperty *P,int *must,int *addition);

void FillMatchInfo(Match_Result *MR,char **BUF);
int SelectMatchMenu(Match_Result *MR,int *mind,int pageindex,int count);
void ShowMatchDetails(Match_Result *MR);
